import Vue from 'vue'
import App from './App.vue'
// 导入 路由对象
import router from './router'
// 导入 实例化的仓库
import store from './store'
// 导入 样式
import './assets/base.less'
// import './utils/flexible'

// 全局过滤器 g-global全局的意思
// 导入+注册组件
import BaseButton from '@/components/BaseUI/BaseButton.vue'
import BaseCheckBox from '@/components/BaseUI/BaseCheckBox.vue'
import BaseBox from '@/components/BaseUI/BaseBox.vue'
import BaseTitle from '@/components/BaseUI/BaseTitle.vue'
import BaseInput from '@/components/BaseUI/BaseInput.vue'
import BaseInputNum from '@/components/BaseUI/BaseInputNum.vue'
import BaseSwitch from '@/components/BaseUI/BaseSwitch.vue'
import BaseTabs from '@/components/BaseUI/BaseTabs.vue'

// 注册上一步导入的所有组件
Vue.component(BaseButton.name, BaseButton)
Vue.component(BaseCheckBox.name, BaseCheckBox)
Vue.component(BaseBox.name, BaseBox)
Vue.component(BaseTitle.name, BaseTitle)
Vue.component(BaseInput.name, BaseInput)
Vue.component(BaseInputNum.name, BaseInputNum)
Vue.component(BaseSwitch.name, BaseSwitch)
Vue.component(BaseTabs.name, BaseTabs)

Vue.config.productionTip = false

new Vue({
  // 路由挂载到Vue实例上
  router,
  // 仓库挂载到Vue实例上
  store,
  render: h => h(App)
}).$mount('#app')
